home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 512 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: jcoffin@rmii.com (Jerry Coffin)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: #warning
  5. Date: 17 Feb 1996 00:11:16 GMT
  6. Organization: TAEUS
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4g366g$5il@natasha.rmii.com>
  9. References: <270631188wnr@pires.co.uk> <4ftd0p$c5s@engnews1.Eng.Sun.COM>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Content-Type: text
  12. X-Nntp-Posting-Host: slip22146.rmii.com
  13. X-Newsreader: Forte Free Agent 1.0.82
  14. Content-Length: 733
  15. X-Lines: 19
  16. Originator: clamage@taumet
  17.  
  18. clamage@Eng.Sun.COM (Steve Clamage) wrote:
  19.  
  20. [suggestion for `#warning' ] 
  21.  
  22. >Yes, you forgot to say how it differs from #error, which is already in the
  23. >draft (and in Standard C). The description of #error says only that it
  24. >"causes the implementation to produce a diagnostic message that includes
  25. >the specified sequence of preprocessing tokens."
  26.  
  27. Given that #error generally _does_ cause processing to halt, it could
  28. simply be:
  29.  
  30. "Causes the implementation to produce a diagnostic message that inlcudes
  31. the specified sequence of preprocessing tokens, but processing of the
  32. translation unit continues."
  33.  
  34. I.e. whether processing halts or not isn't defined with #error, but with
  35. #warning, processing is explicitly defined to continue.
  36.  
  37.  
  38. [ To submit articles: Try just posting with your newsreader.  If that fails,
  39.               use mailto:std-c++@ncar.ucar.edu
  40.   FAQ:    http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  41.   Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  42.   Comments? mailto:std-c++-request@ncar.ucar.edu
  43. ]
  44.